<?php

class Default_Form_Registry extends Zend_Form {

    public function init() {
        $this->setAction('')->setMethod('post');

        $userName = $this->createElement('text', 'txtUserId', array('label' => 'Tài khoản: '));
        $password = $this->createElement('password', 'prdPassword', array('label' => 'Mật khẩu: '));
        $fullName = $this->createElement('text', 'txtFullName', array('label' => 'Họ tên: '));
        $address = $this->createElement('text', 'txtAddress', array('label' => 'Địa chỉ: '));
        $phone = $this->createElement('text', 'txtPhone', array('label' => 'Điện thoại: '));
        $email = $this->createElement('text', 'txtEmail', array('label' => 'Thư điện tử: '));
        $photo = $this->createElement('text', 'txtPhoto', array('label' => 'Hình: '));

        $this->addElement($userName)
                ->addElement($password)
                ->addElement($fullName)
                ->addElement($address)
                ->addElement($phone)
                ->addElement($email)
                ->addElement($photo)
                ->addElement('submit', 'frmRegistry', array('label' => 'Đồng ý'));
    }

}